import { Product } from "wasp/entities";
import { type GetProducts } from "wasp/server/operations";

export const getProducts: GetProducts<void, Product[]> = async (
  args,
  context
) => {
  return context.entities.Product.findMany({
    orderBy: { id: "asc" },
  });
};
